package com.example.observer.v5.listener.impl;

import com.example.observer.v5.event.Event;
import com.example.observer.v5.listener.SourceListener;

public class DadListener implements SourceListener {
    public void handle(){
        System.out.println("dad handle");
    }

    @Override
    public void action(Event wakeUpEvent) {
        Object source = wakeUpEvent.getSource();
        System.out.println("wakeUpEvent.getSource() = " +source );
        handle();
    }
}
